php rtrim comma

104

php rtrim comma -

rtrim($my_string, ',');

php remove last character from string if comma -

$string = rtrim($string, ',');

Comments

Submit
0 Comments